#ifndef MISCTREEITEMDATA_H
#define MISCTREEITEMDATA_H

#include <wx/treectrl.h>

class MiscTreeItemData : public wxTreeItemData {
  public:
    MiscTreeItemData(): m_owner( 0L ) {}
    wxEvtHandler *GetOwner() { return m_owner; }
    static bool OwnerCheck( wxTreeEvent& event, wxTreeCtrl *tree, wxEvtHandler *handler, bool strict = false );
    virtual ~MiscTreeItemData() { m_owner = 0L; }
  protected:
    void SetOwner( wxEvtHandler *owner ) { m_owner = owner; }
  private:
    wxEvtHandler *m_owner;
};

#endif
